<%inherit file="/admin/admin_base.html" />

<%block name="head">
<link rel="stylesheet" type="text/css" href="${ static_url('markitup/skins/simple/style.css') }" />
<link rel="stylesheet" type="text/css" href="${ static_url('markitup/sets/markdown/style.css') }" />
</%block>


<%block name="main">

<script type="text/javascript" src="${ static_url('markitup/jquery.markitup.js') }"></script>
<script type="text/javascript" src="${ static_url('markitup/sets/markdown/set.js') }"></script>


<div>
  <form method="POST">${ xsrf_form_html() }
    <fieldset>
      <legend>${ _("Add Locale Config For ") } ${ key }</legend>
      ${ form.language.label } ${ form.language() }
      ${ form.html_errors(form.language.errors) }

      ${ form.body.label } ${ form.body() }
      ${ form.html_errors(form.body.errors) }
      <br>
      <button type="submit" class="btn">${ _("Submit") }</button>
    </fieldset>
  </form>

</div>

<script type="text/javascript" >
   mySettings.previewParserPath = "/t/preview?markup_language=markdown&_xsrf=${ xsrf_cookie }";
   $(document).ready(function() {
      $("#body").markItUp(mySettings);
   });
</script>

</%block>
